package kr.hkit.powerjava.chapter06;

import java.util.Scanner;

public class exercise01 {
	public static void main(String[] args) {
		
		final int RATE = 5000;
		int pay;
		int hours;
		Scanner input = new Scanner(System.in);
		
		System.out.print("시간을 입력하시오: ");
		hours =input.nextInt();
		
		if (hours>8)
			pay = RATE * (int) (1.5*RATE*(hours - 8));
		else pay = RATE * hours;
		System.out.println("입금은 " + pay + "입니다.");
	}
}
